import { request } from "./requests"

export function apiGetBanner(data){
	 
			return request({url:"/goods/getUserAddresses",method:"POST",data:data})
}


// 用户注册
export function userRegisterApi(data){
		return request({url:"/goods/wxUserRegister",method:"POST",data:data})
	
}



export function userRechargeApi(data){
	return request({url:"/goods/updateAccountBalance",method:"POST",data:data})
}
// 用户充值


// 获取用户的收货地址
export function getUserAddressListApi(data){
	return request({url:"/goods/getUserAddressesByWxLoginCode",method:"POST",data:data})
}


//用户添加收货地址
export function addUserAddressApi(data){
	return request({url:"/goods/createOrupdataAddress",method:"POST",data:data})
}


//用户删除收货地址
export function deleteUserAddressApi(data){
	return request({url:"/goods/deleteAddressByWxLoginCodeAndId",method:"POST",data:data})
}


// http://127.1.1.0:3009


//获取商家店铺地址
export function getShopStoreAddressApi(data){
	return request({url:"/user/allShopData",method:"POST",data:data})
}

//获取商家店铺地址
export function getStoreShopDataApi(data){
	return request({url:"/goods/getGoodsData",method:"POST",data:data})
}




//用户下单接口
export function userOrderDataApi(data){
	return request({url:"/goods/createAndPayOrder",method:"POST",data:data})
}


//重新获取用户的账号
export function getAccountBalanceApi(data){
	return request({url:"/goods/getAccountBalance",method:"POST",data:data})
}

//获取用户的订单
export function getOrdersByWxuserIdApi(data){
	return request({url:"/goods/getOrdersByWxuserId",method:"POST",data:data})
}


